/*
 * Development by ZengRui
 */

package cn.chongqing.han.toolkit;

import android.util.Log;

/**
 */
public class LogUtil {
    private static String LOG_TAG = "MyToolkit";
    private static String TEMP_TAG = "TempMyToolkit";

    /***
     * String LOG_TAG = "MyToolkit";
     */
    public static void out(String content) {
        Log.d(LOG_TAG, content);
    }

    /***
     * String LOG_TAG = "MyToolkit";
     */
    public static void out(String format, Object... args) {
        try {
            String message = String.format(format, args);
            Log.d(LOG_TAG, message);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    /**
     * String TEMP_TAG = "TempMyToolkit";
     */
    public static void tempLog(String content) {
        Log.d(TEMP_TAG, content);
    }

    /**
     * String TEMP_TAG = "TempMyToolkit";
     */
    public static void tempLog(String format, Object... args) {
        try {
            String message = String.format(format, args);
            Log.d(TEMP_TAG, message);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}